{extend name="admin@index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">订单号</label>
        <div class="layui-input-block">
            <input type="text" name="row[name]"   readonly="readonly" autocomplete="off"
                   placeholder="订单号" class="layui-input" value="{$data.order_no}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">发票类型</label>
        <div class="layui-input-block">
            <input type="radio" disabled="disabled" name="invoice_type" value="1" title="个人" {if
                   $data.invoice_type==1}checked{/if}>
            <input type="radio" disabled="disabled" name="invoice_type" value="2" title="企业" {if
                   $data.invoice_type==2}checked{/if}>
        </div>
    </div>

    <!--    <div class="layui-form-item">-->
    <!--        <label class="layui-form-label">发票类型</label>-->
    <!--        <div class="layui-input-block">-->
    <!--            <input type="text" name="row[name]"   readonly="readonly" autocomplete="off" placeholder="发票类型" class="layui-input" value="{$data.invoice_type}">-->
    <!--        </div>-->
    <!--    </div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">抬头名称</label>
        <div class="layui-input-block">
            <input type="text" name="invoice_head"   readonly="readonly" autocomplete="off"
                   placeholder="抬头名称" class="layui-input" value="{$data.invoice_head}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">公司税号</label>
        <div class="layui-input-block">
            <input type="text" name="tax_no"   readonly="readonly" autocomplete="off"
                   placeholder="公司税号" class="layui-input" value="{$data.tax_no}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-block">
            <input type="text" name="email"   readonly="readonly" autocomplete="off"
                   placeholder="邮箱" class="layui-input" value="{$data.email}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">开户银行</label>
        <div class="layui-input-block">
            <input type="text" name="bank"   readonly="readonly" autocomplete="off"
                   placeholder="开户银行" class="layui-input" value="{$data.bank}">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">开户银行地址</label>
        <div class="layui-input-block">
            <input type="text" name="bank_address"   readonly="readonly" autocomplete="off"
                   placeholder="开户银行地址" class="layui-input" value="{$data.bank_address}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">开户电话</label>
        <div class="layui-input-block">
            <input type="text" name="bank_phone"   readonly="readonly" autocomplete="off"
                   placeholder="开户电话" class="layui-input" value="{$data.bank_phone}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">银行账号</label>
        <div class="layui-input-block">
            <input type="text" name="bank_no"   readonly="readonly" autocomplete="off"
                   placeholder="银行账号" class="layui-input" value="{$data.bank_no}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">企业地址</label>
        <div class="layui-input-block">
            <input type="text" name="company_address"   readonly="readonly" autocomplete="off"
                   placeholder="企业地址" class="layui-input" value="{$data.company_address}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">发票开头</label>
        <div class="layui-input-block">
            <input type="text" name="invoice_remark"   readonly="readonly" autocomplete="off"
                   placeholder="发票开头" class="layui-input" value="{$data.invoice_remark}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开票金额</label>
        <div class="layui-input-block">
            <input type="text" name="price"   readonly="readonly" autocomplete="off"
                   placeholder="开票金额" class="layui-input" value="{$data.price}">
        </div>
    </div>
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">开票状态</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="radio" name="status" value="0" title="未开票" {if $data.status==0}checked{/if}>-->
<!--            <input type="radio" name="status" value="1" title="已开票" {if $data.status==1}checked{/if}>-->
<!--        </div>-->
<!--    </div>-->
    <input type="hidden" name="id" value="{$data.id}">
    {if($data.status==0)}
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit>确认开票</button>
            <!--            <button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
        </div>
    </div>
    {/if}
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}
